<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
	<meta charset="UTF-8">
	<title>菜单授权</title>
	<link rel="stylesheet" href="/system/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="/system/css/public.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form" id="resourceForm" lay-filter="permission_detail_form">
	<div class="layui-form-item">
		<label class="layui-form-label">
			<span class="x-red"></span>当前菜单
		</label>
		<div class="layui-input-inline">
			<input type="text" th:value="${sysResourceBean.name}" disabled required="" autocomplete="off" class="layui-input" lay-verify="required">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">
			<span class="x-red"></span>权限管理
		</label>
		<div class="layui-input-inline">
			<div th:each="item:${list}">
				<input type="checkbox" th:value="${item.id}" th:id="${item.id}" th:text="${item.name}" th:checked="${item.describe==null}" name="checkbox" lay-skin="primary" autocomplete="off" lay-verify="required">
			</div>
		</div>
	</div>
	<div class="layui-form-item" style="text-align: center;">
		<input type="hidden" value="save" name="actions"/>
		<input type="hidden" th:value="${sysResourceBean.id}" name="id" id="beanId"/>
		<input type="reset" id="reset" class="layui-hide" lay-filter="reset"/>
		<a class="layui-btn layui-btn-sm" id="grant" onclick="sub()">
			保存
		</a>
	</div>
</form>
<!-- 页面接受后台返回的值 -->
<script src="/system/layui/layui.js"></script>
<script src="/system/js/jquery-3.3.1.js"></script>
<script src="/sysResource/grant.js"></script>
</body>
</html>